
include $(TOP_DIR)/build/common.mk

TARGET = sample_ldt_cli

LOCAL_INCLUDE = \
	-I$(FRAMEWORK_DIR)/base/lindutils \
	-I$(OUT_DIR)/include

LOCAL_LIBRIARY = -L$(OUT_DIR)/lib/ \
	-llindcomponent -lavwrapper -lldutils -lldtunnel -llindplayer

ifneq ($(TARGET_OS) , android)
LOCAL_LIBRIARY += -lpthread
else
LOCAL_CFLAGS += -pie -fPIE
endif

SRC = $(wildcard *.c)

all:
	$(CC) $(SRC) -o $(TARGET) $(LOCAL_LIBRIARY) $(LOCAL_INCLUDE) $(EXTRA_CFLAGS) $(LOCAL_CFLAGS) -Wl,--allow-shlib-undefined
	mv $(TARGET) $(OUT_DIR)/bin/$(TARGET)

clean:
	rm -rf $(OUT_DIR)/bin/$(TARGET)
